package com.zp.thread;

public class SampleTest {
	public static void main(String[] args) {
		Sample sample = new Sample();
		//两个线程：it1增加1；dt1减少1；
		IncreaseThread it1 = new IncreaseThread(sample);
		DecreaseThread dt1 = new DecreaseThread(sample);
		
		IncreaseThread it2 = new IncreaseThread(sample);
		DecreaseThread dt2 = new DecreaseThread(sample);
		
		it1.start();
		dt1.start();
		it2.start();
		dt2.start();
	}
}
